|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectcontrolP5.ControllerGroup
public abstract class ControllerGroup
ControllerGroup is an abstract class and is extended by e.g. ControlGroup, Tab, or ScrollList ControlGroup ScrollList Tab Textarea
| Field Summary |
|---|
| Fields inherited from interface controlP5.ControlP5Constants |
|---|
acceptClassList, ACTIVE, ALT, ARC, ARRAY, BACKSPACE, BOOLEAN, BOTTOM, CENTER, CONTROL, controlEventClass, CUSTOM, DECREASE, DEFAULT, DELETE, DOWN, ELLIPSE, ENTER, ESCAPE, EVENT, eventMethod, FIELD, FLOAT, HALF_PI, HIDE, HIGHLIGHT, HORIZONTAL, IMAGE, INCREASE, INTEGER, INVALID, KEYCONTROL, LEFT, LINE, LOAD, MENU, METHOD, MOVE, OVER, PI, PRESSED, PRINT, RELEASE, RESET, RIGHT, SAVE, SHIFT, SPRITE, STRING, SWITCH, SWITCH_BACK, SWITCH_FORE, TAB, TOP, TWO_PI, UP, VERBOSE, VERTICAL |
| Constructor Summary | |
|---|---|
ControllerGroup(ControlP5 theControlP5,
ControllerGroup theParent,
java.lang.String theName,
float theX,
float theY)
|
|
| Method Summary | |
|---|---|
CVector3f |
absolutePosition()
|
void |
add(ControllerInterface theElement)
add a controller to the group, but use Controller.setGroup() instead. |
ControlCanvas |
addCanvas(ControlCanvas theCanvas)
add a canvas to a controllerGroup such as a tab or group. |
void |
addDrawable(CDrawable theElement)
|
float[] |
arrayValue()
|
Label |
captionLabel()
|
void |
close()
set the status of the group to closed. |
CColor |
color()
|
void |
continuousUpdateEvents()
|
Controller |
controller(java.lang.String theController)
get a controller of the group. |
void |
disableCollapse()
|
void |
draw(processing.core.PApplet theApplet)
|
void |
enableCollapse()
|
ControlP5XMLElement |
getAsXML()
|
CColor |
getColor()
|
int |
getHeight()
|
int |
getPickingColor()
|
Tab |
getTab()
get the instance of the tab this controller belongs to. |
int |
getWidth()
|
ControlWindow |
getWindow()
|
void |
hide()
hide the group. |
int |
id()
|
void |
init()
|
boolean |
isCollapse()
|
boolean |
isMoveable()
check if the group is moveable. |
boolean |
isOpen()
|
boolean |
isUpdate()
check the update status of a controller. |
boolean |
isVisible()
check if the group is visible. |
boolean |
isXMLsavable()
|
void |
keyEvent(java.awt.event.KeyEvent theEvent)
|
void |
moveTo(ControlGroup theGroup)
|
void |
moveTo(ControlGroup theGroup,
Tab theTab,
ControlWindow theControlWindow)
move the group. |
void |
moveTo(ControlWindow theControlWindow)
|
void |
moveTo(ControlWindow theControlWindow,
java.lang.String theTabName)
|
void |
moveTo(java.lang.String theTabName)
|
void |
moveTo(java.lang.String theTabName,
ControlWindow theControlWindow)
|
void |
moveTo(Tab theTab)
|
void |
moveTo(Tab theTab,
ControlWindow theControlWindow)
|
java.lang.String |
name()
get the name of the group. |
void |
open()
set the status of the group to open. |
ControllerInterface |
parent()
|
CVector3f |
position()
|
void |
remove()
remove the controller from controlP5. |
void |
remove(CDrawable theElement)
|
void |
remove(ControllerInterface theElement)
remove a controller from the group, but use Controller.setGroup() instead. |
void |
removeCanvas(ControlCanvas theCanvas)
remove a canvas from a controller group. |
void |
setColorActive(int theColor)
set the color for the group when active. |
void |
setColorBackground(int theColor)
set the background color of the group. |
void |
setColorForeground(int theColor)
set the foreground color of the group. |
void |
setColorLabel(int theColor)
set the color of the text label of the group. |
void |
setColorValue(int theColor)
set the color of the value label. |
void |
setGroup(ControllerGroup theGroup)
set the group of the controller. |
void |
setGroup(java.lang.String theName)
|
ControllerGroup |
setHeight(int theHeight)
|
void |
setId(int theId)
|
void |
setLabel(java.lang.String theLabel)
set the label of the group. |
boolean |
setMousePressed(boolean theStatus)
|
void |
setMoveable(boolean theFlag)
set the moveable status of the group. |
void |
setOpen(boolean theFlag)
|
void |
setPosition(float theX,
float theY)
set the position of this controller. |
void |
setTab(ControlWindow theWindow,
java.lang.String theName)
|
void |
setTab(java.lang.String theName)
set the tab of the controller. |
void |
setTab(Tab theTab)
set the tab of the controller. |
void |
setUpdate(boolean theFlag)
enable or disable the update function of a controller. |
void |
setVisible(boolean theFlag)
set the group's visibility. |
ControllerGroup |
setWidth(int theWidth)
|
void |
show()
show the group. |
java.lang.String |
stringValue()
|
java.lang.String |
toString()
|
void |
update()
call update if you want to update the value of or function call of a controller. |
void |
updateAbsolutePosition()
|
void |
updateEvents()
|
void |
updateInternalEvents(processing.core.PApplet theApplet)
a method for putting input events like e.g. |
float |
value()
!!! experimental, have to check if this spoils anything. |
Label |
valueLabel()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface controlP5.ControllerInterface |
|---|
addToXMLElement |
| Constructor Detail |
|---|
public ControllerGroup(ControlP5 theControlP5,
ControllerGroup theParent,
java.lang.String theName,
float theX,
float theY)
theControlP5 - ControlP5theParent - ControllerGrouptheName - StringtheX - floattheY - float| Method Detail |
|---|
public void init()
init in interface ControllerInterfacepublic ControllerInterface parent()
parent in interface ControllerInterfacepublic void setGroup(ControllerGroup theGroup)
theGroup - ControllerGrouppublic void setGroup(java.lang.String theName)
theName - String
public void moveTo(ControlGroup theGroup,
Tab theTab,
ControlWindow theControlWindow)
moveTo in interface ControllerInterfacetheGroup - ControlGrouptheTab - TabtheControlWindow - ControlWindowpublic void moveTo(ControlGroup theGroup)
public void moveTo(Tab theTab)
public void moveTo(ControlWindow theControlWindow)
public void moveTo(java.lang.String theTabName)
public void moveTo(java.lang.String theTabName,
ControlWindow theControlWindow)
public void moveTo(ControlWindow theControlWindow,
java.lang.String theTabName)
public void moveTo(Tab theTab,
ControlWindow theControlWindow)
public void setTab(java.lang.String theName)
theName - String
public void setTab(ControlWindow theWindow,
java.lang.String theName)
public void setTab(Tab theTab)
theTab - Tabpublic Tab getTab()
getTab in interface ControllerInterfacepublic CVector3f position()
position in interface ControllerInterfacepublic CVector3f absolutePosition()
absolutePosition in interface ControllerInterface
public void setPosition(float theX,
float theY)
setPosition in interface ControllerInterfacetheX - floattheY - floatpublic void updateAbsolutePosition()
updateAbsolutePosition in interface ControllerInterfacepublic void continuousUpdateEvents()
continuousUpdateEvents in interface ControllerInterfacepublic void update()
update in interface ControllerInterfacepublic void setUpdate(boolean theFlag)
setUpdate in interface ControllerInterfacetheFlag - booleanpublic boolean isUpdate()
isUpdate in interface ControllerInterfacepublic void updateEvents()
updateEvents in interface ControllerInterfacepublic void updateInternalEvents(processing.core.PApplet theApplet)
ControllerInterface
updateInternalEvents in interface ControllerInterfaceControllerInterface.updateInternalEventspublic final void draw(processing.core.PApplet theApplet)
draw in interface ControllerInterfacetheApplet - PAppletpublic ControlCanvas addCanvas(ControlCanvas theCanvas)
theCanvas - public void removeCanvas(ControlCanvas theCanvas)
theCanvas - public void add(ControllerInterface theElement)
add in interface ControllerInterfacetheElement - ControllerInterfacepublic void remove(ControllerInterface theElement)
remove in interface ControllerInterfacetheElement - ControllerInterfacepublic void addDrawable(CDrawable theElement)
theElement - CDrawablepublic void remove(CDrawable theElement)
theElement - CDrawablepublic void remove()
remove in interface ControllerInterfacepublic java.lang.String name()
name in interface ControllerInterfacepublic ControlWindow getWindow()
getWindow in interface ControllerInterfacepublic void keyEvent(java.awt.event.KeyEvent theEvent)
keyEvent in interface ControllerInterfacetheEvent - KeyEventpublic boolean setMousePressed(boolean theStatus)
setMousePressed in interface ControllerInterfacetheStatus - boolean
public void setId(int theId)
setId in interface ControllerInterfacetheId - intpublic int id()
id in interface ControllerInterfacepublic void setColorActive(int theColor)
setColorActive in interface ControllerInterfacetheColor - intpublic void setColorForeground(int theColor)
setColorForeground in interface ControllerInterfacetheColor - intpublic void setColorBackground(int theColor)
setColorBackground in interface ControllerInterfacetheColor - intpublic void setColorLabel(int theColor)
setColorLabel in interface ControllerInterfacetheColor - intpublic void setColorValue(int theColor)
setColorValue in interface ControllerInterfacetheColor - intpublic void setLabel(java.lang.String theLabel)
setLabel in interface ControllerInterfacetheLabel - Stringpublic boolean isVisible()
isVisible in interface ControllerInterfacepublic void setVisible(boolean theFlag)
theFlag - booleanpublic void hide()
hide in interface ControllerInterfacepublic void show()
show in interface ControllerInterfacepublic void setMoveable(boolean theFlag)
theFlag - booleanpublic boolean isMoveable()
public void setOpen(boolean theFlag)
theFlag - booleanpublic boolean isOpen()
public void open()
public void close()
public int getPickingColor()
getPickingColor in interface ControllerInterfacepublic CColor color()
color in interface ControllerInterfacepublic CColor getColor()
public float value()
value in interface ControllerInterfacepublic java.lang.String stringValue()
stringValue in interface ControllerInterfacepublic float[] arrayValue()
public Controller controller(java.lang.String theController)
theController - String
public Label captionLabel()
public Label valueLabel()
public void enableCollapse()
public void disableCollapse()
public boolean isCollapse()
public int getWidth()
getWidth in interface ControllerInterfacepublic int getHeight()
getHeight in interface ControllerInterfacepublic ControllerGroup setWidth(int theWidth)
public ControllerGroup setHeight(int theHeight)
public boolean isXMLsavable()
isXMLsavable in interface ControllerInterfacepublic ControlP5XMLElement getAsXML()
getAsXML in interface ControllerInterfacepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||